package com.hxkj.service;

import com.github.pagehelper.PageInfo;
import com.hxkj.domain.po.FriendlyLink;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;
import com.platform.common.domain.to.PageTo;

import java.util.List;

/**
 * 友情链接
 * <p>
 * Created by chenfangzhou on 2018/6/6.
 */
public interface FriendlyLinkService {

    /**
     * 保存友情链接
     *
     * @param friendlyLink
     * @return
     * @throws Exception
     */
    ResultMessageStruct saveFriendlyLink(FriendlyLink friendlyLink) throws Exception;

    /**
     * 获取单个友情链接
     *
     * @param
     * @return
     * @throws Exception
     */
    ResultDataStruct<FriendlyLink> getFriendlyLink(FriendlyLink friendlyLink) throws Exception;


    /**
     * 获取所有友情链接
     *
     * @return
     * @throws Exception
     */
    PageInfo<FriendlyLink> getFriendlyLinkList(FriendlyLink friendlyLink, PageTo pageParam) throws Exception;





    /**
     * 更新友情链接
     *
     * @param friendlyLink
     */
    ResultMessageStruct updateFriendlyLink(FriendlyLink friendlyLink) throws Exception;

    /**
     * 删除友情链接
     *
     * @param friendlyLink
     */
    ResultMessageStruct deleteFriendlyLink(FriendlyLink friendlyLink) throws Exception;


    /**
     * 获取友情链接列表,不带分页
     *
     * @return
     * @throws Exception
     */
    List<FriendlyLink> getFriendlyLinkListNoPage(FriendlyLink friendlyLink) throws Exception;
}
